﻿
namespace NetROS.Tiers.Windows.Forms
{
	/// <summary>
	/// abstract ObracunOsoba typed datagridview
	/// </summary>
	[System.ComponentModel.DesignerCategoryAttribute("code")]
	public abstract class ObracunOsobaDataGridViewBase : System.Windows.Forms.UserControl
	{	
		/// <summary> 
		/// Thrown when the current Entity changed.
		/// </summary>
		public event System.EventHandler<ObracunOsobaDataGridViewEventArgs> CurrentEntityChanged;
		
		#region Fields
				
		/// <summary> 
		/// the current entity.
		/// </summary>
		private Entities.ObracunOsoba _currentObracunOsoba = null;
		//private Dictionary<string, string> _columnsHeaders = new Dictionary<string, string>();
		
		/// <summary> 
		/// the datagridview instance
		/// </summary>
		protected System.Windows.Forms.DataGridView uxObracunOsobaDataGridView;
		
		/// <summary> 
		/// the errorprovider
		/// </summary>
		protected System.Windows.Forms.ErrorProvider uxObracunOsobaErrorProvider;
		
		/// <summary> 
		/// the bindingsource
		/// </summary>
		protected System.Windows.Forms.BindingSource uxObracunOsobaBindingSource;
		
		
		/// <summary> 
		/// the DGV column associated with the ID property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxIDDataGridViewColumn;
		/// <summary> 
		/// the DGV column associated with the IDOsoba property
		/// </summary>
		protected System.Windows.Forms.DataGridViewComboBoxColumn uxIDOsobaDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the BrutoIznosZaRazdoblje property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxBrutoIznosZaRazdobljeDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the BrutoSatnica property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxBrutoSatnicaDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the ProsjecnaBruto6Mjeseci property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxProsjecnaBruto6MjeseciDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the ProsjecnaNeto6Mjeseci property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxProsjecnaNeto6MjeseciDataGridViewColumn;
		/// <summary> 
		/// the DGV column associated with the IDObracun property
		/// </summary>
		protected System.Windows.Forms.DataGridViewComboBoxColumn uxIDObracunDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the OsobniOdbitak property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxOsobniOdbitakDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the MaksPorezneOlaksice property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxMaksPorezneOlaksiceDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the UkBruto property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxUkBrutoDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the UkMIO1Iznos property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxUkMIO1IznosDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the UkMIO1PovecaniStazIznos property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxUkMIO1PovecaniStazIznosDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the UkMIO2Iznos property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxUkMIO2IznosDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the MIO2PovecaniStazIznos property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxMIO2PovecaniStazIznosDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the IznosPoreznihOlaksica property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxIznosPoreznihOlaksicaDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the PoreznaOsnovica property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxPoreznaOsnovicaDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the Porez15 property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxPorez15DataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the Porez25 property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxPorez25DataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the Porez35 property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxPorez35DataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the Porez45 property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxPorez45DataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the UkPorez property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxUkPorezDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the Prirez property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxPrirezDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the PrirezIznos property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxPrirezIznosDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the IDMjestoPrirez property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxIDMjestoPrirezDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the Zdravstveno property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxZdravstvenoDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the Zaposljavanje property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxZaposljavanjeDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the Nezgoda property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxNezgodaDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the PosPorez property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxPosPorezDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the ZapOsobaSInvaliditetom property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxZapOsobaSInvaliditetomDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the ZapOsobaSInvaliditetomIznos property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxZapOsobaSInvaliditetomIznosDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the NetoPredPorezIPrirez property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxNetoPredPorezIPrirezDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the NetoPredPosPorez property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxNetoPredPosPorezDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the NetoIsplata property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxNetoIsplataDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the ZdravstvenoZaInozemstvo property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxZdravstvenoZaInozemstvoDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the UkObustave property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxUkObustaveDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the UkNaknade property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxUkNaknadeDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the PosebniPorezPostotak property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxPosebniPorezPostotakDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the NetoIsplataNakonObustavaNaknada property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxNetoIsplataNakonObustavaNaknadaDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the MIO1Postotak property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxMIO1PostotakDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the MIO2Postotak property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxMIO2PostotakDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the UkIznosBezDoprinosa property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxUkIznosBezDoprinosaDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the DatumObracunaOd property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxDatumObracunaOdDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the DatumObracunaDo property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxDatumObracunaDoDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the DatumDospijeca property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxDatumDospijecaDataGridViewColumn;
		
		#endregion
					
		#region Combo list
		
				
		private Entities.TList<Entities.Obracun> _IDObracunList;
		
		/// <summary> 
		/// The list of selectable Obracun
		/// </summary>
		[System.ComponentModel.Category("DropDownList BindingSources")]
		public Entities.TList<Entities.Obracun> IDObracunList
		{
			get {return this._IDObracunList;}
			set 
			{
				this._IDObracunList = value;
				this.uxIDObracunDataGridViewColumn.DataSource = null;
				this.uxIDObracunDataGridViewColumn.DataSource = this._IDObracunList;
			}
		}
		
		private bool _allowNewItemInIDObracunList;
		
		/// <summary> 
		/// Indicates if user can add an item in the list of Obracun
		/// </summary>
		[System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Indicates if end user can add a new item in the combobox. an event will be thrown then.")]
		public bool AllowNewItemInIDObracunList
		{
			get { return _allowNewItemInIDObracunList;}
			set
			{
				this._allowNewItemInIDObracunList = value;
				this.uxIDObracunDataGridViewColumn.DisplayStyle = value ? System.Windows.Forms.DataGridViewComboBoxDisplayStyle.ComboBox : System.Windows.Forms.DataGridViewComboBoxDisplayStyle.DropDownButton;
			}
		}
		
				
		private Entities.TList<Entities.Osoba> _IDOsobaList;
		
		/// <summary> 
		/// The list of selectable Osoba
		/// </summary>
		[System.ComponentModel.Category("DropDownList BindingSources")]
		public Entities.TList<Entities.Osoba> IDOsobaList
		{
			get {return this._IDOsobaList;}
			set 
			{
				this._IDOsobaList = value;
				this.uxIDOsobaDataGridViewColumn.DataSource = null;
				this.uxIDOsobaDataGridViewColumn.DataSource = this._IDOsobaList;
			}
		}
		
		private bool _allowNewItemInIDOsobaList;
		
		/// <summary> 
		/// Indicates if user can add an item in the list of Osoba
		/// </summary>
		[System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Indicates if end user can add a new item in the combobox. an event will be thrown then.")]
		public bool AllowNewItemInIDOsobaList
		{
			get { return _allowNewItemInIDOsobaList;}
			set
			{
				this._allowNewItemInIDOsobaList = value;
				this.uxIDOsobaDataGridViewColumn.DisplayStyle = value ? System.Windows.Forms.DataGridViewComboBoxDisplayStyle.ComboBox : System.Windows.Forms.DataGridViewComboBoxDisplayStyle.DropDownButton;
			}
		}
		
		#endregion
		
		#region Main Datasource
		
		private Entities.TList<Entities.ObracunOsoba> _ObracunOsobaList;
				
		/// <summary> 
		/// The list of ObracunOsoba to be displayed in the DGV.
		/// </summary>
		[System.ComponentModel.Category("Data")]
		public Entities.TList<Entities.ObracunOsoba> ObracunOsobaList
		{
			get {return this._ObracunOsobaList;}
			set
			{
				this._ObracunOsobaList = value;
				this.uxObracunOsobaBindingSource.DataSource = null;
				this.uxObracunOsobaBindingSource.DataSource = value;
				this.uxObracunOsobaDataGridView.DataSource = null;
				this.uxObracunOsobaDataGridView.DataSource = this.uxObracunOsobaBindingSource;				
				//this.uxObracunOsobaBindingSource.ListChanged += new System.ComponentModel.ListChangedEventHandler(uxObracunOsobaBindingSource_ListChanged);
				this.uxObracunOsobaBindingSource.CurrentItemChanged += new System.EventHandler(OnObracunOsobaBindingSourceCurrentItemChanged);
			}
		}
		
		private void OnObracunOsobaBindingSourceCurrentItemChanged(object sender, System.EventArgs e)
		{
			_currentObracunOsoba = uxObracunOsobaBindingSource.Current as Entities.ObracunOsoba;
			
			if (_currentObracunOsoba != null)
			{
				_currentObracunOsoba.Validate();
			}
			//_ObracunOsoba.Validate();
			OnCurrentEntityChanged();
		}

		//void uxObracunOsobaBindingSource_ListChanged(object sender, System.ComponentModel.ListChangedEventArgs e)
		//{
			//throw new Exception("The method or operation is not implemented.");
		//}		
		
		#endregion
		
		/// <summary>
		/// Gets the currently selected <c cref="Entities.ObracunOsoba"/> instance.
		/// </summary>
		public Entities.ObracunOsoba SelectedObracunOsoba
		{
			get {return this._currentObracunOsoba;}
		}
		
		#region other properties
		
		/// <summary>
		/// Gets or sets a value indicating whether you have provided your own data-management operations for the DataGridView control.
		/// </summary>
		[System.ComponentModel.Category(".netTiers")]
		public bool VirtualMode
		{
			get {return this.uxObracunOsobaDataGridView.VirtualMode;}
			set
			{
				this.uxObracunOsobaDataGridView.VirtualMode = value;
			}
		}
		
		/// <summary>
		/// Gets or sets a value indicating whether the option to add rows is displayed to the user.
		/// </summary>
		[System.ComponentModel.Category(".netTiers")]
		public bool AllowUserToAddRows
		{
			get {return this.uxObracunOsobaDataGridView.AllowUserToAddRows;}
			set {this.uxObracunOsobaDataGridView.AllowUserToAddRows = value;}
		}
		
		/// <summary>
		/// Gets or sets a value indicating whether the user is allowed to delete rows from the DataGridView.
		/// </summary>
		[System.ComponentModel.Category(".netTiers")]
		public bool AllowUserToDeleteRows
		{
			get {return this.uxObracunOsobaDataGridView.AllowUserToDeleteRows;}
			set {this.uxObracunOsobaDataGridView.AllowUserToDeleteRows = value;}
		}
		
		/// <summary>
		/// Gets the <c cref="DataGridView"/> instance.
		/// </summary>
		[System.ComponentModel.Category(".netTiers")]
		public System.Windows.Forms.DataGridView DataGridView
		{
			get {return this.uxObracunOsobaDataGridView;}
		}
		
		/// <summary>
		/// Gets a collection that contains all the columns in the control.
		/// </summary>
		[System.ComponentModel.Category(".netTiers")]		
		[System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Visible)]
		//[System.ComponentModel.EditorAttribute("System.Windows.Forms.Design.DataGridViewColumnCollectionEditor, System.Design", typeof(System.Drawing.Design.UITypeEditor))] 
		public System.Windows.Forms.DataGridViewColumnCollection Columns
		{
			get { return this.uxObracunOsobaDataGridView.Columns; }
		}
		
		#endregion
		
		/// <summary> 
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.IContainer components = null;
	
		/// <summary> 
		/// Clean up any resources being used.
		/// </summary>
		/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
		protected override void Dispose(bool disposing)
		{
			if (disposing && (components != null))
			{
				components.Dispose();
			}
			base.Dispose(disposing);
		}
	
		#region Constructor
	
		/// <summary>
		/// Initializes a new instance of the <see cref="ObracunOsobaDataGridViewBase"/> class.
		/// </summary>
		public ObracunOsobaDataGridViewBase()
		{			
			this.components = new System.ComponentModel.Container();			
			
			this.uxObracunOsobaDataGridView = new System.Windows.Forms.DataGridView();
			this.uxObracunOsobaBindingSource = new System.Windows.Forms.BindingSource(this.components);
			this.uxObracunOsobaErrorProvider = new System.Windows.Forms.ErrorProvider(this.components);
			this.uxIDDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxIDOsobaDataGridViewColumn = new System.Windows.Forms.DataGridViewComboBoxColumn();
			this.uxBrutoIznosZaRazdobljeDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxBrutoSatnicaDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxProsjecnaBruto6MjeseciDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxProsjecnaNeto6MjeseciDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxIDObracunDataGridViewColumn = new System.Windows.Forms.DataGridViewComboBoxColumn();
			this.uxOsobniOdbitakDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxMaksPorezneOlaksiceDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxUkBrutoDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxUkMIO1IznosDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxUkMIO1PovecaniStazIznosDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxUkMIO2IznosDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxMIO2PovecaniStazIznosDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxIznosPoreznihOlaksicaDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxPoreznaOsnovicaDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxPorez15DataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxPorez25DataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxPorez35DataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxPorez45DataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxUkPorezDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxPrirezDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxPrirezIznosDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxIDMjestoPrirezDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxZdravstvenoDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxZaposljavanjeDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxNezgodaDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxPosPorezDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxZapOsobaSInvaliditetomDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxZapOsobaSInvaliditetomIznosDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxNetoPredPorezIPrirezDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxNetoPredPosPorezDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxNetoIsplataDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxZdravstvenoZaInozemstvoDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxUkObustaveDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxUkNaknadeDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxPosebniPorezPostotakDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxNetoIsplataNakonObustavaNaknadaDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxMIO1PostotakDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxMIO2PostotakDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxUkIznosBezDoprinosaDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxDatumObracunaOdDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxDatumObracunaDoDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxDatumDospijecaDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			//this.uxIDObracunBindingSource = new ObracunBindingSource(this.components);
			//((System.ComponentModel.ISupportInitialize)(this.uxIDObracunBindingSource)).BeginInit();
			//this.uxIDOsobaBindingSource = new OsobaBindingSource(this.components);
			//((System.ComponentModel.ISupportInitialize)(this.uxIDOsobaBindingSource)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.uxObracunOsobaDataGridView)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.uxObracunOsobaBindingSource)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.uxObracunOsobaErrorProvider)).BeginInit();
			this.SuspendLayout();
						
			// 
			// uxObracunOsobaErrorProvider
			// 
			this.uxObracunOsobaErrorProvider.ContainerControl = this;
			this.uxObracunOsobaErrorProvider.DataSource = this.uxObracunOsobaBindingSource;						
			// 
			// uxObracunOsobaDataGridView
			// 
			this.uxObracunOsobaDataGridView.AutoGenerateColumns = false;
			this.uxObracunOsobaDataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
			this.uxObracunOsobaDataGridView.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
		this.uxIDDataGridViewColumn,
		this.uxIDOsobaDataGridViewColumn,
		this.uxBrutoIznosZaRazdobljeDataGridViewColumn,
		this.uxBrutoSatnicaDataGridViewColumn,
		this.uxProsjecnaBruto6MjeseciDataGridViewColumn,
		this.uxProsjecnaNeto6MjeseciDataGridViewColumn,
		this.uxIDObracunDataGridViewColumn,
		this.uxOsobniOdbitakDataGridViewColumn,
		this.uxMaksPorezneOlaksiceDataGridViewColumn,
		this.uxUkBrutoDataGridViewColumn,
		this.uxUkMIO1IznosDataGridViewColumn,
		this.uxUkMIO1PovecaniStazIznosDataGridViewColumn,
		this.uxUkMIO2IznosDataGridViewColumn,
		this.uxMIO2PovecaniStazIznosDataGridViewColumn,
		this.uxIznosPoreznihOlaksicaDataGridViewColumn,
		this.uxPoreznaOsnovicaDataGridViewColumn,
		this.uxPorez15DataGridViewColumn,
		this.uxPorez25DataGridViewColumn,
		this.uxPorez35DataGridViewColumn,
		this.uxPorez45DataGridViewColumn,
		this.uxUkPorezDataGridViewColumn,
		this.uxPrirezDataGridViewColumn,
		this.uxPrirezIznosDataGridViewColumn,
		this.uxIDMjestoPrirezDataGridViewColumn,
		this.uxZdravstvenoDataGridViewColumn,
		this.uxZaposljavanjeDataGridViewColumn,
		this.uxNezgodaDataGridViewColumn,
		this.uxPosPorezDataGridViewColumn,
		this.uxZapOsobaSInvaliditetomDataGridViewColumn,
		this.uxZapOsobaSInvaliditetomIznosDataGridViewColumn,
		this.uxNetoPredPorezIPrirezDataGridViewColumn,
		this.uxNetoPredPosPorezDataGridViewColumn,
		this.uxNetoIsplataDataGridViewColumn,
		this.uxZdravstvenoZaInozemstvoDataGridViewColumn,
		this.uxUkObustaveDataGridViewColumn,
		this.uxUkNaknadeDataGridViewColumn,
		this.uxPosebniPorezPostotakDataGridViewColumn,
		this.uxNetoIsplataNakonObustavaNaknadaDataGridViewColumn,
		this.uxMIO1PostotakDataGridViewColumn,
		this.uxMIO2PostotakDataGridViewColumn,
		this.uxUkIznosBezDoprinosaDataGridViewColumn,
		this.uxDatumObracunaOdDataGridViewColumn,
		this.uxDatumObracunaDoDataGridViewColumn,
		this.uxDatumDospijecaDataGridViewColumn			});
			this.uxObracunOsobaDataGridView.Dock = System.Windows.Forms.DockStyle.Fill;
			this.uxObracunOsobaDataGridView.Location = new System.Drawing.Point(0, 0);
			this.uxObracunOsobaDataGridView.Name = "uxObracunOsobaDataGridView";
			this.uxObracunOsobaDataGridView.Size = new System.Drawing.Size(470, 300);
			this.uxObracunOsobaDataGridView.TabIndex = 0;	
			this.uxObracunOsobaDataGridView.BackgroundColor = System.Drawing.Color.WhiteSmoke;
			this.uxObracunOsobaDataGridView.EnableHeadersVisualStyles = false;
			this.uxObracunOsobaDataGridView.DataError += new System.Windows.Forms.DataGridViewDataErrorEventHandler(this.OnObracunOsobaDataGridViewDataError);
			this.uxObracunOsobaDataGridView.CellValueNeeded += new System.Windows.Forms.DataGridViewCellValueEventHandler(this.OnObracunOsobaDataGridViewCellValueNeeded);
			this.uxObracunOsobaDataGridView.CellValuePushed += new System.Windows.Forms.DataGridViewCellValueEventHandler(this.OnObracunOsobaDataGridViewCellValuePushed);
			
			//
			// uxIDDataGridViewColumn
			//
			this.uxIDDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxIDDataGridViewColumn.DataPropertyName = "ID";
			this.uxIDDataGridViewColumn.HeaderText = "ID";
			this.uxIDDataGridViewColumn.Name = "uxIDDataGridViewColumn";
			this.uxIDDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxIDDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxIDDataGridViewColumn.ReadOnly = true;		
			//
			// uxIDOsobaDataGridViewColumn
			//
			this.uxIDOsobaDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxIDOsobaDataGridViewColumn.DataPropertyName = "IDOsoba";
			this.uxIDOsobaDataGridViewColumn.HeaderText = "IDOsoba";
			this.uxIDOsobaDataGridViewColumn.Name = "uxIDOsobaDataGridViewColumn";
			this.uxIDOsobaDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxIDOsobaDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxIDOsobaDataGridViewColumn.ReadOnly = false;		
			//
			// uxBrutoIznosZaRazdobljeDataGridViewColumn
			//
			this.uxBrutoIznosZaRazdobljeDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxBrutoIznosZaRazdobljeDataGridViewColumn.DataPropertyName = "BrutoIznosZaRazdoblje";
			this.uxBrutoIznosZaRazdobljeDataGridViewColumn.HeaderText = "BrutoIznosZaRazdoblje";
			this.uxBrutoIznosZaRazdobljeDataGridViewColumn.Name = "uxBrutoIznosZaRazdobljeDataGridViewColumn";
			this.uxBrutoIznosZaRazdobljeDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxBrutoIznosZaRazdobljeDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxBrutoIznosZaRazdobljeDataGridViewColumn.ReadOnly = false;		
			//
			// uxBrutoSatnicaDataGridViewColumn
			//
			this.uxBrutoSatnicaDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxBrutoSatnicaDataGridViewColumn.DataPropertyName = "BrutoSatnica";
			this.uxBrutoSatnicaDataGridViewColumn.HeaderText = "BrutoSatnica";
			this.uxBrutoSatnicaDataGridViewColumn.Name = "uxBrutoSatnicaDataGridViewColumn";
			this.uxBrutoSatnicaDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxBrutoSatnicaDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxBrutoSatnicaDataGridViewColumn.ReadOnly = false;		
			//
			// uxProsjecnaBruto6MjeseciDataGridViewColumn
			//
			this.uxProsjecnaBruto6MjeseciDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxProsjecnaBruto6MjeseciDataGridViewColumn.DataPropertyName = "ProsjecnaBruto6Mjeseci";
			this.uxProsjecnaBruto6MjeseciDataGridViewColumn.HeaderText = "ProsjecnaBruto6Mjeseci";
			this.uxProsjecnaBruto6MjeseciDataGridViewColumn.Name = "uxProsjecnaBruto6MjeseciDataGridViewColumn";
			this.uxProsjecnaBruto6MjeseciDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxProsjecnaBruto6MjeseciDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxProsjecnaBruto6MjeseciDataGridViewColumn.ReadOnly = false;		
			//
			// uxProsjecnaNeto6MjeseciDataGridViewColumn
			//
			this.uxProsjecnaNeto6MjeseciDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxProsjecnaNeto6MjeseciDataGridViewColumn.DataPropertyName = "ProsjecnaNeto6Mjeseci";
			this.uxProsjecnaNeto6MjeseciDataGridViewColumn.HeaderText = "ProsjecnaNeto6Mjeseci";
			this.uxProsjecnaNeto6MjeseciDataGridViewColumn.Name = "uxProsjecnaNeto6MjeseciDataGridViewColumn";
			this.uxProsjecnaNeto6MjeseciDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxProsjecnaNeto6MjeseciDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxProsjecnaNeto6MjeseciDataGridViewColumn.ReadOnly = false;		
			//
			// uxIDObracunDataGridViewColumn
			//
			this.uxIDObracunDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxIDObracunDataGridViewColumn.DataPropertyName = "IDObracun";
			this.uxIDObracunDataGridViewColumn.HeaderText = "IDObracun";
			this.uxIDObracunDataGridViewColumn.Name = "uxIDObracunDataGridViewColumn";
			this.uxIDObracunDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxIDObracunDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxIDObracunDataGridViewColumn.ReadOnly = false;		
			//
			// uxOsobniOdbitakDataGridViewColumn
			//
			this.uxOsobniOdbitakDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxOsobniOdbitakDataGridViewColumn.DataPropertyName = "OsobniOdbitak";
			this.uxOsobniOdbitakDataGridViewColumn.HeaderText = "OsobniOdbitak";
			this.uxOsobniOdbitakDataGridViewColumn.Name = "uxOsobniOdbitakDataGridViewColumn";
			this.uxOsobniOdbitakDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxOsobniOdbitakDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxOsobniOdbitakDataGridViewColumn.ReadOnly = false;		
			//
			// uxMaksPorezneOlaksiceDataGridViewColumn
			//
			this.uxMaksPorezneOlaksiceDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxMaksPorezneOlaksiceDataGridViewColumn.DataPropertyName = "MaksPorezneOlaksice";
			this.uxMaksPorezneOlaksiceDataGridViewColumn.HeaderText = "MaksPorezneOlaksice";
			this.uxMaksPorezneOlaksiceDataGridViewColumn.Name = "uxMaksPorezneOlaksiceDataGridViewColumn";
			this.uxMaksPorezneOlaksiceDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxMaksPorezneOlaksiceDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxMaksPorezneOlaksiceDataGridViewColumn.ReadOnly = false;		
			//
			// uxUkBrutoDataGridViewColumn
			//
			this.uxUkBrutoDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxUkBrutoDataGridViewColumn.DataPropertyName = "UkBruto";
			this.uxUkBrutoDataGridViewColumn.HeaderText = "UkBruto";
			this.uxUkBrutoDataGridViewColumn.Name = "uxUkBrutoDataGridViewColumn";
			this.uxUkBrutoDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxUkBrutoDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxUkBrutoDataGridViewColumn.ReadOnly = false;		
			//
			// uxUkMIO1IznosDataGridViewColumn
			//
			this.uxUkMIO1IznosDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxUkMIO1IznosDataGridViewColumn.DataPropertyName = "UkMIO1Iznos";
			this.uxUkMIO1IznosDataGridViewColumn.HeaderText = "UkMIO1Iznos";
			this.uxUkMIO1IznosDataGridViewColumn.Name = "uxUkMIO1IznosDataGridViewColumn";
			this.uxUkMIO1IznosDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxUkMIO1IznosDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxUkMIO1IznosDataGridViewColumn.ReadOnly = false;		
			//
			// uxUkMIO1PovecaniStazIznosDataGridViewColumn
			//
			this.uxUkMIO1PovecaniStazIznosDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxUkMIO1PovecaniStazIznosDataGridViewColumn.DataPropertyName = "UkMIO1PovecaniStazIznos";
			this.uxUkMIO1PovecaniStazIznosDataGridViewColumn.HeaderText = "UkMIO1PovecaniStazIznos";
			this.uxUkMIO1PovecaniStazIznosDataGridViewColumn.Name = "uxUkMIO1PovecaniStazIznosDataGridViewColumn";
			this.uxUkMIO1PovecaniStazIznosDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxUkMIO1PovecaniStazIznosDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxUkMIO1PovecaniStazIznosDataGridViewColumn.ReadOnly = false;		
			//
			// uxUkMIO2IznosDataGridViewColumn
			//
			this.uxUkMIO2IznosDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxUkMIO2IznosDataGridViewColumn.DataPropertyName = "UkMIO2Iznos";
			this.uxUkMIO2IznosDataGridViewColumn.HeaderText = "UkMIO2Iznos";
			this.uxUkMIO2IznosDataGridViewColumn.Name = "uxUkMIO2IznosDataGridViewColumn";
			this.uxUkMIO2IznosDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxUkMIO2IznosDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxUkMIO2IznosDataGridViewColumn.ReadOnly = false;		
			//
			// uxMIO2PovecaniStazIznosDataGridViewColumn
			//
			this.uxMIO2PovecaniStazIznosDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxMIO2PovecaniStazIznosDataGridViewColumn.DataPropertyName = "MIO2PovecaniStazIznos";
			this.uxMIO2PovecaniStazIznosDataGridViewColumn.HeaderText = "MIO2PovecaniStazIznos";
			this.uxMIO2PovecaniStazIznosDataGridViewColumn.Name = "uxMIO2PovecaniStazIznosDataGridViewColumn";
			this.uxMIO2PovecaniStazIznosDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxMIO2PovecaniStazIznosDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxMIO2PovecaniStazIznosDataGridViewColumn.ReadOnly = false;		
			//
			// uxIznosPoreznihOlaksicaDataGridViewColumn
			//
			this.uxIznosPoreznihOlaksicaDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxIznosPoreznihOlaksicaDataGridViewColumn.DataPropertyName = "IznosPoreznihOlaksica";
			this.uxIznosPoreznihOlaksicaDataGridViewColumn.HeaderText = "IznosPoreznihOlaksica";
			this.uxIznosPoreznihOlaksicaDataGridViewColumn.Name = "uxIznosPoreznihOlaksicaDataGridViewColumn";
			this.uxIznosPoreznihOlaksicaDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxIznosPoreznihOlaksicaDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxIznosPoreznihOlaksicaDataGridViewColumn.ReadOnly = false;		
			//
			// uxPoreznaOsnovicaDataGridViewColumn
			//
			this.uxPoreznaOsnovicaDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxPoreznaOsnovicaDataGridViewColumn.DataPropertyName = "PoreznaOsnovica";
			this.uxPoreznaOsnovicaDataGridViewColumn.HeaderText = "PoreznaOsnovica";
			this.uxPoreznaOsnovicaDataGridViewColumn.Name = "uxPoreznaOsnovicaDataGridViewColumn";
			this.uxPoreznaOsnovicaDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxPoreznaOsnovicaDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxPoreznaOsnovicaDataGridViewColumn.ReadOnly = false;		
			//
			// uxPorez15DataGridViewColumn
			//
			this.uxPorez15DataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxPorez15DataGridViewColumn.DataPropertyName = "Porez15";
			this.uxPorez15DataGridViewColumn.HeaderText = "Porez15";
			this.uxPorez15DataGridViewColumn.Name = "uxPorez15DataGridViewColumn";
			this.uxPorez15DataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxPorez15DataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxPorez15DataGridViewColumn.ReadOnly = false;		
			//
			// uxPorez25DataGridViewColumn
			//
			this.uxPorez25DataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxPorez25DataGridViewColumn.DataPropertyName = "Porez25";
			this.uxPorez25DataGridViewColumn.HeaderText = "Porez25";
			this.uxPorez25DataGridViewColumn.Name = "uxPorez25DataGridViewColumn";
			this.uxPorez25DataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxPorez25DataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxPorez25DataGridViewColumn.ReadOnly = false;		
			//
			// uxPorez35DataGridViewColumn
			//
			this.uxPorez35DataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxPorez35DataGridViewColumn.DataPropertyName = "Porez35";
			this.uxPorez35DataGridViewColumn.HeaderText = "Porez35";
			this.uxPorez35DataGridViewColumn.Name = "uxPorez35DataGridViewColumn";
			this.uxPorez35DataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxPorez35DataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxPorez35DataGridViewColumn.ReadOnly = false;		
			//
			// uxPorez45DataGridViewColumn
			//
			this.uxPorez45DataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxPorez45DataGridViewColumn.DataPropertyName = "Porez45";
			this.uxPorez45DataGridViewColumn.HeaderText = "Porez45";
			this.uxPorez45DataGridViewColumn.Name = "uxPorez45DataGridViewColumn";
			this.uxPorez45DataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxPorez45DataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxPorez45DataGridViewColumn.ReadOnly = false;		
			//
			// uxUkPorezDataGridViewColumn
			//
			this.uxUkPorezDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxUkPorezDataGridViewColumn.DataPropertyName = "UkPorez";
			this.uxUkPorezDataGridViewColumn.HeaderText = "UkPorez";
			this.uxUkPorezDataGridViewColumn.Name = "uxUkPorezDataGridViewColumn";
			this.uxUkPorezDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxUkPorezDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxUkPorezDataGridViewColumn.ReadOnly = false;		
			//
			// uxPrirezDataGridViewColumn
			//
			this.uxPrirezDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxPrirezDataGridViewColumn.DataPropertyName = "Prirez";
			this.uxPrirezDataGridViewColumn.HeaderText = "Prirez";
			this.uxPrirezDataGridViewColumn.Name = "uxPrirezDataGridViewColumn";
			this.uxPrirezDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxPrirezDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxPrirezDataGridViewColumn.ReadOnly = false;		
			//
			// uxPrirezIznosDataGridViewColumn
			//
			this.uxPrirezIznosDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxPrirezIznosDataGridViewColumn.DataPropertyName = "PrirezIznos";
			this.uxPrirezIznosDataGridViewColumn.HeaderText = "PrirezIznos";
			this.uxPrirezIznosDataGridViewColumn.Name = "uxPrirezIznosDataGridViewColumn";
			this.uxPrirezIznosDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxPrirezIznosDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxPrirezIznosDataGridViewColumn.ReadOnly = false;		
			//
			// uxIDMjestoPrirezDataGridViewColumn
			//
			this.uxIDMjestoPrirezDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxIDMjestoPrirezDataGridViewColumn.DataPropertyName = "IDMjestoPrirez";
			this.uxIDMjestoPrirezDataGridViewColumn.HeaderText = "IDMjestoPrirez";
			this.uxIDMjestoPrirezDataGridViewColumn.Name = "uxIDMjestoPrirezDataGridViewColumn";
			this.uxIDMjestoPrirezDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxIDMjestoPrirezDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxIDMjestoPrirezDataGridViewColumn.ReadOnly = false;		
			//
			// uxZdravstvenoDataGridViewColumn
			//
			this.uxZdravstvenoDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxZdravstvenoDataGridViewColumn.DataPropertyName = "Zdravstveno";
			this.uxZdravstvenoDataGridViewColumn.HeaderText = "Zdravstveno";
			this.uxZdravstvenoDataGridViewColumn.Name = "uxZdravstvenoDataGridViewColumn";
			this.uxZdravstvenoDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxZdravstvenoDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxZdravstvenoDataGridViewColumn.ReadOnly = false;		
			//
			// uxZaposljavanjeDataGridViewColumn
			//
			this.uxZaposljavanjeDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxZaposljavanjeDataGridViewColumn.DataPropertyName = "Zaposljavanje";
			this.uxZaposljavanjeDataGridViewColumn.HeaderText = "Zaposljavanje";
			this.uxZaposljavanjeDataGridViewColumn.Name = "uxZaposljavanjeDataGridViewColumn";
			this.uxZaposljavanjeDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxZaposljavanjeDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxZaposljavanjeDataGridViewColumn.ReadOnly = false;		
			//
			// uxNezgodaDataGridViewColumn
			//
			this.uxNezgodaDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxNezgodaDataGridViewColumn.DataPropertyName = "Nezgoda";
			this.uxNezgodaDataGridViewColumn.HeaderText = "Nezgoda";
			this.uxNezgodaDataGridViewColumn.Name = "uxNezgodaDataGridViewColumn";
			this.uxNezgodaDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxNezgodaDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxNezgodaDataGridViewColumn.ReadOnly = false;		
			//
			// uxPosPorezDataGridViewColumn
			//
			this.uxPosPorezDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxPosPorezDataGridViewColumn.DataPropertyName = "PosPorez";
			this.uxPosPorezDataGridViewColumn.HeaderText = "PosPorez";
			this.uxPosPorezDataGridViewColumn.Name = "uxPosPorezDataGridViewColumn";
			this.uxPosPorezDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxPosPorezDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxPosPorezDataGridViewColumn.ReadOnly = false;		
			//
			// uxZapOsobaSInvaliditetomDataGridViewColumn
			//
			this.uxZapOsobaSInvaliditetomDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxZapOsobaSInvaliditetomDataGridViewColumn.DataPropertyName = "ZapOsobaSInvaliditetom";
			this.uxZapOsobaSInvaliditetomDataGridViewColumn.HeaderText = "ZapOsobaSInvaliditetom";
			this.uxZapOsobaSInvaliditetomDataGridViewColumn.Name = "uxZapOsobaSInvaliditetomDataGridViewColumn";
			this.uxZapOsobaSInvaliditetomDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxZapOsobaSInvaliditetomDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxZapOsobaSInvaliditetomDataGridViewColumn.ReadOnly = false;		
			//
			// uxZapOsobaSInvaliditetomIznosDataGridViewColumn
			//
			this.uxZapOsobaSInvaliditetomIznosDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxZapOsobaSInvaliditetomIznosDataGridViewColumn.DataPropertyName = "ZapOsobaSInvaliditetomIznos";
			this.uxZapOsobaSInvaliditetomIznosDataGridViewColumn.HeaderText = "ZapOsobaSInvaliditetomIznos";
			this.uxZapOsobaSInvaliditetomIznosDataGridViewColumn.Name = "uxZapOsobaSInvaliditetomIznosDataGridViewColumn";
			this.uxZapOsobaSInvaliditetomIznosDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxZapOsobaSInvaliditetomIznosDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxZapOsobaSInvaliditetomIznosDataGridViewColumn.ReadOnly = false;		
			//
			// uxNetoPredPorezIPrirezDataGridViewColumn
			//
			this.uxNetoPredPorezIPrirezDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxNetoPredPorezIPrirezDataGridViewColumn.DataPropertyName = "NetoPredPorezIPrirez";
			this.uxNetoPredPorezIPrirezDataGridViewColumn.HeaderText = "NetoPredPorezIPrirez";
			this.uxNetoPredPorezIPrirezDataGridViewColumn.Name = "uxNetoPredPorezIPrirezDataGridViewColumn";
			this.uxNetoPredPorezIPrirezDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxNetoPredPorezIPrirezDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxNetoPredPorezIPrirezDataGridViewColumn.ReadOnly = false;		
			//
			// uxNetoPredPosPorezDataGridViewColumn
			//
			this.uxNetoPredPosPorezDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxNetoPredPosPorezDataGridViewColumn.DataPropertyName = "NetoPredPosPorez";
			this.uxNetoPredPosPorezDataGridViewColumn.HeaderText = "NetoPredPosPorez";
			this.uxNetoPredPosPorezDataGridViewColumn.Name = "uxNetoPredPosPorezDataGridViewColumn";
			this.uxNetoPredPosPorezDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxNetoPredPosPorezDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxNetoPredPosPorezDataGridViewColumn.ReadOnly = false;		
			//
			// uxNetoIsplataDataGridViewColumn
			//
			this.uxNetoIsplataDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxNetoIsplataDataGridViewColumn.DataPropertyName = "NetoIsplata";
			this.uxNetoIsplataDataGridViewColumn.HeaderText = "NetoIsplata";
			this.uxNetoIsplataDataGridViewColumn.Name = "uxNetoIsplataDataGridViewColumn";
			this.uxNetoIsplataDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxNetoIsplataDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxNetoIsplataDataGridViewColumn.ReadOnly = false;		
			//
			// uxZdravstvenoZaInozemstvoDataGridViewColumn
			//
			this.uxZdravstvenoZaInozemstvoDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxZdravstvenoZaInozemstvoDataGridViewColumn.DataPropertyName = "ZdravstvenoZaInozemstvo";
			this.uxZdravstvenoZaInozemstvoDataGridViewColumn.HeaderText = "ZdravstvenoZaInozemstvo";
			this.uxZdravstvenoZaInozemstvoDataGridViewColumn.Name = "uxZdravstvenoZaInozemstvoDataGridViewColumn";
			this.uxZdravstvenoZaInozemstvoDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxZdravstvenoZaInozemstvoDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxZdravstvenoZaInozemstvoDataGridViewColumn.ReadOnly = false;		
			//
			// uxUkObustaveDataGridViewColumn
			//
			this.uxUkObustaveDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxUkObustaveDataGridViewColumn.DataPropertyName = "UkObustave";
			this.uxUkObustaveDataGridViewColumn.HeaderText = "UkObustave";
			this.uxUkObustaveDataGridViewColumn.Name = "uxUkObustaveDataGridViewColumn";
			this.uxUkObustaveDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxUkObustaveDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxUkObustaveDataGridViewColumn.ReadOnly = false;		
			//
			// uxUkNaknadeDataGridViewColumn
			//
			this.uxUkNaknadeDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxUkNaknadeDataGridViewColumn.DataPropertyName = "UkNaknade";
			this.uxUkNaknadeDataGridViewColumn.HeaderText = "UkNaknade";
			this.uxUkNaknadeDataGridViewColumn.Name = "uxUkNaknadeDataGridViewColumn";
			this.uxUkNaknadeDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxUkNaknadeDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxUkNaknadeDataGridViewColumn.ReadOnly = false;		
			//
			// uxPosebniPorezPostotakDataGridViewColumn
			//
			this.uxPosebniPorezPostotakDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxPosebniPorezPostotakDataGridViewColumn.DataPropertyName = "PosebniPorezPostotak";
			this.uxPosebniPorezPostotakDataGridViewColumn.HeaderText = "PosebniPorezPostotak";
			this.uxPosebniPorezPostotakDataGridViewColumn.Name = "uxPosebniPorezPostotakDataGridViewColumn";
			this.uxPosebniPorezPostotakDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxPosebniPorezPostotakDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxPosebniPorezPostotakDataGridViewColumn.ReadOnly = false;		
			//
			// uxNetoIsplataNakonObustavaNaknadaDataGridViewColumn
			//
			this.uxNetoIsplataNakonObustavaNaknadaDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxNetoIsplataNakonObustavaNaknadaDataGridViewColumn.DataPropertyName = "NetoIsplataNakonObustavaNaknada";
			this.uxNetoIsplataNakonObustavaNaknadaDataGridViewColumn.HeaderText = "NetoIsplataNakonObustavaNaknada";
			this.uxNetoIsplataNakonObustavaNaknadaDataGridViewColumn.Name = "uxNetoIsplataNakonObustavaNaknadaDataGridViewColumn";
			this.uxNetoIsplataNakonObustavaNaknadaDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxNetoIsplataNakonObustavaNaknadaDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxNetoIsplataNakonObustavaNaknadaDataGridViewColumn.ReadOnly = false;		
			//
			// uxMIO1PostotakDataGridViewColumn
			//
			this.uxMIO1PostotakDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxMIO1PostotakDataGridViewColumn.DataPropertyName = "MIO1Postotak";
			this.uxMIO1PostotakDataGridViewColumn.HeaderText = "MIO1Postotak";
			this.uxMIO1PostotakDataGridViewColumn.Name = "uxMIO1PostotakDataGridViewColumn";
			this.uxMIO1PostotakDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxMIO1PostotakDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxMIO1PostotakDataGridViewColumn.ReadOnly = false;		
			//
			// uxMIO2PostotakDataGridViewColumn
			//
			this.uxMIO2PostotakDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxMIO2PostotakDataGridViewColumn.DataPropertyName = "MIO2Postotak";
			this.uxMIO2PostotakDataGridViewColumn.HeaderText = "MIO2Postotak";
			this.uxMIO2PostotakDataGridViewColumn.Name = "uxMIO2PostotakDataGridViewColumn";
			this.uxMIO2PostotakDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxMIO2PostotakDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxMIO2PostotakDataGridViewColumn.ReadOnly = false;		
			//
			// uxUkIznosBezDoprinosaDataGridViewColumn
			//
			this.uxUkIznosBezDoprinosaDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxUkIznosBezDoprinosaDataGridViewColumn.DataPropertyName = "UkIznosBezDoprinosa";
			this.uxUkIznosBezDoprinosaDataGridViewColumn.HeaderText = "UkIznosBezDoprinosa";
			this.uxUkIznosBezDoprinosaDataGridViewColumn.Name = "uxUkIznosBezDoprinosaDataGridViewColumn";
			this.uxUkIznosBezDoprinosaDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxUkIznosBezDoprinosaDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxUkIznosBezDoprinosaDataGridViewColumn.ReadOnly = false;		
			//
			// uxDatumObracunaOdDataGridViewColumn
			//
			this.uxDatumObracunaOdDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxDatumObracunaOdDataGridViewColumn.DataPropertyName = "DatumObracunaOd";
			this.uxDatumObracunaOdDataGridViewColumn.HeaderText = "DatumObracunaOd";
			this.uxDatumObracunaOdDataGridViewColumn.Name = "uxDatumObracunaOdDataGridViewColumn";
			this.uxDatumObracunaOdDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxDatumObracunaOdDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxDatumObracunaOdDataGridViewColumn.ReadOnly = false;		
			//
			// uxDatumObracunaDoDataGridViewColumn
			//
			this.uxDatumObracunaDoDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxDatumObracunaDoDataGridViewColumn.DataPropertyName = "DatumObracunaDo";
			this.uxDatumObracunaDoDataGridViewColumn.HeaderText = "DatumObracunaDo";
			this.uxDatumObracunaDoDataGridViewColumn.Name = "uxDatumObracunaDoDataGridViewColumn";
			this.uxDatumObracunaDoDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxDatumObracunaDoDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxDatumObracunaDoDataGridViewColumn.ReadOnly = false;		
			//
			// uxDatumDospijecaDataGridViewColumn
			//
			this.uxDatumDospijecaDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxDatumDospijecaDataGridViewColumn.DataPropertyName = "DatumDospijeca";
			this.uxDatumDospijecaDataGridViewColumn.HeaderText = "DatumDospijeca";
			this.uxDatumDospijecaDataGridViewColumn.Name = "uxDatumDospijecaDataGridViewColumn";
			this.uxDatumDospijecaDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxDatumDospijecaDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxDatumDospijecaDataGridViewColumn.ReadOnly = false;		
			//
			// uxIDObracunDataGridViewColumn
			//				
			this.uxIDObracunDataGridViewColumn.DisplayMember = "DatumOd";	
			this.uxIDObracunDataGridViewColumn.ValueMember = "ID";	
			this.uxIDObracunDataGridViewColumn.DisplayStyleForCurrentCellOnly = true;
			//uxIDObracunDataGridViewColumn.DataSource = uxIDObracunBindingSource;				
				
			//
			// uxIDOsobaDataGridViewColumn
			//				
			this.uxIDOsobaDataGridViewColumn.DisplayMember = "Ime";	
			this.uxIDOsobaDataGridViewColumn.ValueMember = "ID";	
			this.uxIDOsobaDataGridViewColumn.DisplayStyleForCurrentCellOnly = true;
			//uxIDOsobaDataGridViewColumn.DataSource = uxIDOsobaBindingSource;				
				
			
			// this
			this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
			this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
			this.Controls.Add(this.uxObracunOsobaDataGridView);
			this.Name = "ObracunOsobaDataGridView";
			this.Size = new System.Drawing.Size(470, 300);
			//((System.ComponentModel.ISupportInitialize)(this.uxIDObracunBindingSource)).EndInit();
			//((System.ComponentModel.ISupportInitialize)(this.uxIDOsobaBindingSource)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.uxObracunOsobaErrorProvider)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.uxObracunOsobaDataGridView)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.uxObracunOsobaBindingSource)).EndInit();
			this.ResumeLayout(false);
		}
		#endregion
				
		#region events
		
		/// <summary>
		/// Raised the CurrentEntityChanged event.
		/// </summary>
		protected void OnCurrentEntityChanged()
		{
			if (CurrentEntityChanged != null)
			{
				ObracunOsobaDataGridViewEventArgs args = new ObracunOsobaDataGridViewEventArgs();
				args.ObracunOsoba = _currentObracunOsoba;
				CurrentEntityChanged(this, args); 
			}
		}
		
		#endregion
		
		/// <summary>
		/// Strongly typed event 
		/// </summary>
		public class ObracunOsobaDataGridViewEventArgs : System.EventArgs
		{
			private Entities.ObracunOsoba	_ObracunOsoba;
	
			/// <summary>
			/// the  Entities.ObracunOsoba instance.
			/// </summary>
			public Entities.ObracunOsoba ObracunOsoba
			{
				get { return _ObracunOsoba; }
				set { _ObracunOsoba = value; }
			}	
		}
		
		/// <summary>
		/// Handles the DataError event of the uxObracunOsobaDataGridView control.
		/// </summary>
		/// <param name="sender">The source of the event.</param>
		/// <param name="e">The <see cref="T:System.Windows.Forms.DataGridViewDataErrorEventArgs"/> instance containing the event data.</param>
		protected void OnObracunOsobaDataGridViewDataError(object sender, System.Windows.Forms.DataGridViewDataErrorEventArgs e)
		{
			System.Diagnostics.Debug.WriteLine(string.Format( "{0}, {1}", e.ColumnIndex, e.RowIndex));
		}
		
		/// <summary>
		/// Handles the CellValueNeeded event of the uxObracunOsobaDataGridView control.
		/// </summary>
		/// <param name="sender">The source of the event.</param>
		/// <param name="e">The <see cref="T:System.Windows.Forms.DataGridViewCellValueEventArgs"/> instance containing the event data.</param>
		protected void OnObracunOsobaDataGridViewCellValueNeeded(object sender, System.Windows.Forms.DataGridViewCellValueEventArgs e)
		{
			switch(uxObracunOsobaDataGridView.Columns[e.ColumnIndex].Name)
			{
					case "uxIDDataGridViewColumn":
						e.Value = ObracunOsobaList[e.RowIndex].ID;
						break;
					case "uxIDOsobaDataGridViewColumn":
						e.Value = ObracunOsobaList[e.RowIndex].IDOsoba;
						break;
					case "uxBrutoIznosZaRazdobljeDataGridViewColumn":
						e.Value = ObracunOsobaList[e.RowIndex].BrutoIznosZaRazdoblje;
						break;
					case "uxBrutoSatnicaDataGridViewColumn":
						e.Value = ObracunOsobaList[e.RowIndex].BrutoSatnica;
						break;
					case "uxProsjecnaBruto6MjeseciDataGridViewColumn":
						e.Value = ObracunOsobaList[e.RowIndex].ProsjecnaBruto6Mjeseci;
						break;
					case "uxProsjecnaNeto6MjeseciDataGridViewColumn":
						e.Value = ObracunOsobaList[e.RowIndex].ProsjecnaNeto6Mjeseci;
						break;
					case "uxIDObracunDataGridViewColumn":
						e.Value = ObracunOsobaList[e.RowIndex].IDObracun;
						break;
					case "uxOsobniOdbitakDataGridViewColumn":
						e.Value = ObracunOsobaList[e.RowIndex].OsobniOdbitak;
						break;
					case "uxMaksPorezneOlaksiceDataGridViewColumn":
						e.Value = ObracunOsobaList[e.RowIndex].MaksPorezneOlaksice;
						break;
					case "uxUkBrutoDataGridViewColumn":
						e.Value = ObracunOsobaList[e.RowIndex].UkBruto;
						break;
					case "uxUkMIO1IznosDataGridViewColumn":
						e.Value = ObracunOsobaList[e.RowIndex].UkMIO1Iznos;
						break;
					case "uxUkMIO1PovecaniStazIznosDataGridViewColumn":
						e.Value = ObracunOsobaList[e.RowIndex].UkMIO1PovecaniStazIznos;
						break;
					case "uxUkMIO2IznosDataGridViewColumn":
						e.Value = ObracunOsobaList[e.RowIndex].UkMIO2Iznos;
						break;
					case "uxMIO2PovecaniStazIznosDataGridViewColumn":
						e.Value = ObracunOsobaList[e.RowIndex].MIO2PovecaniStazIznos;
						break;
					case "uxIznosPoreznihOlaksicaDataGridViewColumn":
						e.Value = ObracunOsobaList[e.RowIndex].IznosPoreznihOlaksica;
						break;
					case "uxPoreznaOsnovicaDataGridViewColumn":
						e.Value = ObracunOsobaList[e.RowIndex].PoreznaOsnovica;
						break;
					case "uxPorez15DataGridViewColumn":
						e.Value = ObracunOsobaList[e.RowIndex].Porez15;
						break;
					case "uxPorez25DataGridViewColumn":
						e.Value = ObracunOsobaList[e.RowIndex].Porez25;
						break;
					case "uxPorez35DataGridViewColumn":
						e.Value = ObracunOsobaList[e.RowIndex].Porez35;
						break;
					case "uxPorez45DataGridViewColumn":
						e.Value = ObracunOsobaList[e.RowIndex].Porez45;
						break;
					case "uxUkPorezDataGridViewColumn":
						e.Value = ObracunOsobaList[e.RowIndex].UkPorez;
						break;
					case "uxPrirezDataGridViewColumn":
						e.Value = ObracunOsobaList[e.RowIndex].Prirez;
						break;
					case "uxPrirezIznosDataGridViewColumn":
						e.Value = ObracunOsobaList[e.RowIndex].PrirezIznos;
						break;
					case "uxIDMjestoPrirezDataGridViewColumn":
						e.Value = ObracunOsobaList[e.RowIndex].IDMjestoPrirez;
						break;
					case "uxZdravstvenoDataGridViewColumn":
						e.Value = ObracunOsobaList[e.RowIndex].Zdravstveno;
						break;
					case "uxZaposljavanjeDataGridViewColumn":
						e.Value = ObracunOsobaList[e.RowIndex].Zaposljavanje;
						break;
					case "uxNezgodaDataGridViewColumn":
						e.Value = ObracunOsobaList[e.RowIndex].Nezgoda;
						break;
					case "uxPosPorezDataGridViewColumn":
						e.Value = ObracunOsobaList[e.RowIndex].PosPorez;
						break;
					case "uxZapOsobaSInvaliditetomDataGridViewColumn":
						e.Value = ObracunOsobaList[e.RowIndex].ZapOsobaSInvaliditetom;
						break;
					case "uxZapOsobaSInvaliditetomIznosDataGridViewColumn":
						e.Value = ObracunOsobaList[e.RowIndex].ZapOsobaSInvaliditetomIznos;
						break;
					case "uxNetoPredPorezIPrirezDataGridViewColumn":
						e.Value = ObracunOsobaList[e.RowIndex].NetoPredPorezIPrirez;
						break;
					case "uxNetoPredPosPorezDataGridViewColumn":
						e.Value = ObracunOsobaList[e.RowIndex].NetoPredPosPorez;
						break;
					case "uxNetoIsplataDataGridViewColumn":
						e.Value = ObracunOsobaList[e.RowIndex].NetoIsplata;
						break;
					case "uxZdravstvenoZaInozemstvoDataGridViewColumn":
						e.Value = ObracunOsobaList[e.RowIndex].ZdravstvenoZaInozemstvo;
						break;
					case "uxUkObustaveDataGridViewColumn":
						e.Value = ObracunOsobaList[e.RowIndex].UkObustave;
						break;
					case "uxUkNaknadeDataGridViewColumn":
						e.Value = ObracunOsobaList[e.RowIndex].UkNaknade;
						break;
					case "uxPosebniPorezPostotakDataGridViewColumn":
						e.Value = ObracunOsobaList[e.RowIndex].PosebniPorezPostotak;
						break;
					case "uxNetoIsplataNakonObustavaNaknadaDataGridViewColumn":
						e.Value = ObracunOsobaList[e.RowIndex].NetoIsplataNakonObustavaNaknada;
						break;
					case "uxMIO1PostotakDataGridViewColumn":
						e.Value = ObracunOsobaList[e.RowIndex].MIO1Postotak;
						break;
					case "uxMIO2PostotakDataGridViewColumn":
						e.Value = ObracunOsobaList[e.RowIndex].MIO2Postotak;
						break;
					case "uxUkIznosBezDoprinosaDataGridViewColumn":
						e.Value = ObracunOsobaList[e.RowIndex].UkIznosBezDoprinosa;
						break;
					case "uxDatumObracunaOdDataGridViewColumn":
						e.Value = ObracunOsobaList[e.RowIndex].DatumObracunaOd;
						break;
					case "uxDatumObracunaDoDataGridViewColumn":
						e.Value = ObracunOsobaList[e.RowIndex].DatumObracunaDo;
						break;
					case "uxDatumDospijecaDataGridViewColumn":
						e.Value = ObracunOsobaList[e.RowIndex].DatumDospijeca;
						break;
				default:
				break;
			}
		}
		
		/// <summary>
		/// Handles the CellValuePushed event of the uxObracunOsobaDataGridView control.
		/// </summary>
		/// <param name="sender">The source of the event.</param>
		/// <param name="e">The <see cref="T:System.Windows.Forms.DataGridViewCellValueEventArgs"/> instance containing the event data.</param>
		protected void OnObracunOsobaDataGridViewCellValuePushed(object sender, System.Windows.Forms.DataGridViewCellValueEventArgs e)
		{
			switch(uxObracunOsobaDataGridView.Columns[e.ColumnIndex].Name)
			{
					case "uxIDDataGridViewColumn":
						ObracunOsobaList[e.RowIndex].ID = (System.Int32)e.Value;
						break;
					case "uxIDOsobaDataGridViewColumn":
						ObracunOsobaList[e.RowIndex].IDOsoba = (System.Int32)e.Value;
						break;
					case "uxBrutoIznosZaRazdobljeDataGridViewColumn":
						ObracunOsobaList[e.RowIndex].BrutoIznosZaRazdoblje = (System.Decimal?)e.Value;
						break;
					case "uxBrutoSatnicaDataGridViewColumn":
						ObracunOsobaList[e.RowIndex].BrutoSatnica = (System.Decimal?)e.Value;
						break;
					case "uxProsjecnaBruto6MjeseciDataGridViewColumn":
						ObracunOsobaList[e.RowIndex].ProsjecnaBruto6Mjeseci = (System.Decimal?)e.Value;
						break;
					case "uxProsjecnaNeto6MjeseciDataGridViewColumn":
						ObracunOsobaList[e.RowIndex].ProsjecnaNeto6Mjeseci = (System.Decimal?)e.Value;
						break;
					case "uxIDObracunDataGridViewColumn":
						ObracunOsobaList[e.RowIndex].IDObracun = (System.Int32)e.Value;
						break;
					case "uxOsobniOdbitakDataGridViewColumn":
						ObracunOsobaList[e.RowIndex].OsobniOdbitak = (System.Single)e.Value;
						break;
					case "uxMaksPorezneOlaksiceDataGridViewColumn":
						ObracunOsobaList[e.RowIndex].MaksPorezneOlaksice = (System.Decimal)e.Value;
						break;
					case "uxUkBrutoDataGridViewColumn":
						ObracunOsobaList[e.RowIndex].UkBruto = (System.Decimal?)e.Value;
						break;
					case "uxUkMIO1IznosDataGridViewColumn":
						ObracunOsobaList[e.RowIndex].UkMIO1Iznos = (System.Decimal?)e.Value;
						break;
					case "uxUkMIO1PovecaniStazIznosDataGridViewColumn":
						ObracunOsobaList[e.RowIndex].UkMIO1PovecaniStazIznos = (System.Decimal?)e.Value;
						break;
					case "uxUkMIO2IznosDataGridViewColumn":
						ObracunOsobaList[e.RowIndex].UkMIO2Iznos = (System.Decimal?)e.Value;
						break;
					case "uxMIO2PovecaniStazIznosDataGridViewColumn":
						ObracunOsobaList[e.RowIndex].MIO2PovecaniStazIznos = (System.Decimal?)e.Value;
						break;
					case "uxIznosPoreznihOlaksicaDataGridViewColumn":
						ObracunOsobaList[e.RowIndex].IznosPoreznihOlaksica = (System.Decimal?)e.Value;
						break;
					case "uxPoreznaOsnovicaDataGridViewColumn":
						ObracunOsobaList[e.RowIndex].PoreznaOsnovica = (System.Decimal?)e.Value;
						break;
					case "uxPorez15DataGridViewColumn":
						ObracunOsobaList[e.RowIndex].Porez15 = (System.Decimal?)e.Value;
						break;
					case "uxPorez25DataGridViewColumn":
						ObracunOsobaList[e.RowIndex].Porez25 = (System.Decimal?)e.Value;
						break;
					case "uxPorez35DataGridViewColumn":
						ObracunOsobaList[e.RowIndex].Porez35 = (System.Decimal?)e.Value;
						break;
					case "uxPorez45DataGridViewColumn":
						ObracunOsobaList[e.RowIndex].Porez45 = (System.Decimal?)e.Value;
						break;
					case "uxUkPorezDataGridViewColumn":
						ObracunOsobaList[e.RowIndex].UkPorez = (System.Decimal?)e.Value;
						break;
					case "uxPrirezDataGridViewColumn":
						ObracunOsobaList[e.RowIndex].Prirez = (System.Decimal?)e.Value;
						break;
					case "uxPrirezIznosDataGridViewColumn":
						ObracunOsobaList[e.RowIndex].PrirezIznos = (System.Decimal?)e.Value;
						break;
					case "uxIDMjestoPrirezDataGridViewColumn":
						ObracunOsobaList[e.RowIndex].IDMjestoPrirez = (System.Int32?)e.Value;
						break;
					case "uxZdravstvenoDataGridViewColumn":
						ObracunOsobaList[e.RowIndex].Zdravstveno = (System.Decimal?)e.Value;
						break;
					case "uxZaposljavanjeDataGridViewColumn":
						ObracunOsobaList[e.RowIndex].Zaposljavanje = (System.Decimal?)e.Value;
						break;
					case "uxNezgodaDataGridViewColumn":
						ObracunOsobaList[e.RowIndex].Nezgoda = (System.Decimal?)e.Value;
						break;
					case "uxPosPorezDataGridViewColumn":
						ObracunOsobaList[e.RowIndex].PosPorez = (System.Decimal?)e.Value;
						break;
					case "uxZapOsobaSInvaliditetomDataGridViewColumn":
						ObracunOsobaList[e.RowIndex].ZapOsobaSInvaliditetom = (System.Decimal?)e.Value;
						break;
					case "uxZapOsobaSInvaliditetomIznosDataGridViewColumn":
						ObracunOsobaList[e.RowIndex].ZapOsobaSInvaliditetomIznos = (System.Decimal?)e.Value;
						break;
					case "uxNetoPredPorezIPrirezDataGridViewColumn":
						ObracunOsobaList[e.RowIndex].NetoPredPorezIPrirez = (System.Decimal?)e.Value;
						break;
					case "uxNetoPredPosPorezDataGridViewColumn":
						ObracunOsobaList[e.RowIndex].NetoPredPosPorez = (System.Decimal?)e.Value;
						break;
					case "uxNetoIsplataDataGridViewColumn":
						ObracunOsobaList[e.RowIndex].NetoIsplata = (System.Decimal?)e.Value;
						break;
					case "uxZdravstvenoZaInozemstvoDataGridViewColumn":
						ObracunOsobaList[e.RowIndex].ZdravstvenoZaInozemstvo = (System.Decimal?)e.Value;
						break;
					case "uxUkObustaveDataGridViewColumn":
						ObracunOsobaList[e.RowIndex].UkObustave = (System.Decimal?)e.Value;
						break;
					case "uxUkNaknadeDataGridViewColumn":
						ObracunOsobaList[e.RowIndex].UkNaknade = (System.Decimal?)e.Value;
						break;
					case "uxPosebniPorezPostotakDataGridViewColumn":
						ObracunOsobaList[e.RowIndex].PosebniPorezPostotak = (System.Decimal?)e.Value;
						break;
					case "uxNetoIsplataNakonObustavaNaknadaDataGridViewColumn":
						ObracunOsobaList[e.RowIndex].NetoIsplataNakonObustavaNaknada = (System.Decimal?)e.Value;
						break;
					case "uxMIO1PostotakDataGridViewColumn":
						ObracunOsobaList[e.RowIndex].MIO1Postotak = (System.Decimal?)e.Value;
						break;
					case "uxMIO2PostotakDataGridViewColumn":
						ObracunOsobaList[e.RowIndex].MIO2Postotak = (System.Decimal?)e.Value;
						break;
					case "uxUkIznosBezDoprinosaDataGridViewColumn":
						ObracunOsobaList[e.RowIndex].UkIznosBezDoprinosa = (System.Decimal)e.Value;
						break;
					case "uxDatumObracunaOdDataGridViewColumn":
						ObracunOsobaList[e.RowIndex].DatumObracunaOd = (System.DateTime?)e.Value;
						break;
					case "uxDatumObracunaDoDataGridViewColumn":
						ObracunOsobaList[e.RowIndex].DatumObracunaDo = (System.DateTime?)e.Value;
						break;
					case "uxDatumDospijecaDataGridViewColumn":
						ObracunOsobaList[e.RowIndex].DatumDospijeca = (System.DateTime?)e.Value;
						break;
				default:
				break;
			}
		}
	}
}
